using System;

namespace AuthorizeNET {
	public class EmailConfig : INameValueSerializable {
		string customer_email;
		string merchant_email;
		bool email_customer;

		public EmailConfig(string customer, string merchant, bool send_email) {
			this.customer_email = customer;
			this.merchant_email = merchant;
			this.email_customer = send_email;
		}

		public EmailConfig()
			: this(string.Empty, string.Empty, false) { }

		[KeyName("x_email")]
		public string CustomerEmail {
			get { return (this.customer_email); }
			set { this.customer_email = value; }
		}

		[KeyName("x_merchant_email")]
		public string MerchantEmail {
			get { return (this.merchant_email); }
			set { this.merchant_email = value; }
		}

		[KeyName("x_email_customer")]
		public bool EmailCustomer {
			get { return (this.email_customer); }
			set { this.email_customer = value; }
		}
	}
}
